import request from '@/utils/request'

export function getUser(token) {
    return request({
        url: '/hello/world',
        method: 'get',
        headers: {
            'token': token
        }
    })
}

export function getLine(username, userRole, token) {
    return request({
        url: '/dashBoard/getLine',
        method: 'get',
        params: {
            username: username,
            userRole: userRole[0]
        },
        headers: {
            'token': token
        }
    })
}

export function getCircle(token) {
    return request({
        url: '/dashBoard/getCircle',
        method: 'get',
        headers: {
            'token': token
        }
    })
}

export function getData(token) {
    return request({
        url: '/dashBoard/getData',
        method: 'get',
        headers: {
            'token': token
        }
    })
}